﻿//----------------------------------------------------------------
// <copyright file="ItemResponse.cs" >
//    Top Do ---TOP API DEMO 示例系列之
//    CLR Version: 2.0.50727.1434
//    NameSpace:  TopSpace.Bll
//    FileClass: ItemResponse - 商品添加或更新输出专用对象结构
//
//    By 淘宝旺旺ID: 幻影时空
//    Email:visionspace@st-soft.cn
//    Copyright (C) SpaceTime SoftWare , All rights reserved (www.st-soft.cn).
//
//    项目引用 System.Net 类
// </copyright>
//----------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;

namespace TopSpace.Bll
{
    /// <summary>
    /// 商品添加或更新输出专用对象结构
    /// </summary>
    public class ItemResponse
    {
        private string _iid = string.Empty;
        /// <summary>
        /// 商品IID
        /// </summary>
        public string iid
        {
            set { _iid = value; }
            get { return _iid; }
        }

        private string _num_iid = string.Empty;
        /// <summary>
        /// 商品数字ID
        /// </summary>
        public string num_iid
        {
            set { _num_iid = value; }
            get { return _num_iid; }
        }

        private string _created = string.Empty;
        /// <summary>
        /// 商品创建时间
        /// </summary>
        public string created
        {
            set { _created = value; }
            get 
            {
                try
                {
                    return Convert.ToDateTime(_created).ToString("yyyy-MM-dd HH:mm:ss");
                }
                catch (Exception exp)
                {
                    return "";
                }
            }
        }

        private string _modified = string.Empty;
        /// <summary>
        /// 商品修改时间
        /// </summary>
        public string modified
        {
            set { _modified = value; }
            get 
            {
                try
                {
                    return Convert.ToDateTime(_modified).ToString("yyyy-MM-dd HH:mm:ss");
                }
                catch (Exception exp)
                {
                    return "";
                }
            }
        }

    }
}
